package main

import "io"

type monitoredWriter struct {
	w         io.Writer
	direction string
	conn      *monitoredConnection
}

func newMonitoredWriter(w io.Writer, direction string, conn *monitoredConnection) *monitoredWriter {
	mw := &monitoredWriter{
		w:         w,
		direction: direction,
		conn:      conn,
	}
	return mw
}

func (mw *monitoredWriter) Write(p []byte) (n int, err error) {
	return mw.w.Write(p)
}
